package com.hlf.modules.merchant.store.controller;


import com.hlf.modules.merchant.store.entity.OnlineBusiness;
import com.hlf.modules.merchant.store.service.OnlineBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/onlineBusiness")
public class OnlineBusinessController {

	@Autowired
	private OnlineBusinessService onlineBusinessService;



	@ResponseBody
	@RequestMapping(value = "/findFirstTypeList", method = RequestMethod.GET)
	public List<OnlineBusiness> findFirstTypeList(OnlineBusiness onlineBusiness) {
		 List<OnlineBusiness> list= onlineBusinessService.findFirstTypeList(onlineBusiness);
		return list;
	}
	@ResponseBody
	@RequestMapping(value = "/findSecondTypeList", method = RequestMethod.GET)
	public List<OnlineBusiness> findSecondTypeList(OnlineBusiness onlineBusiness) {
		 List<OnlineBusiness> list= onlineBusinessService.findSecondTypeList(onlineBusiness);
		return list;
	}
	@ResponseBody
	@RequestMapping(value = "/findThirdTypeList", method = RequestMethod.GET)
	public List<OnlineBusiness> findThirdTypeList(OnlineBusiness onlineBusiness) {
		 List<OnlineBusiness> list= onlineBusinessService.findThirdTypeList(onlineBusiness);
		return list;
	}



}
